package com.spic.business.train.trainInfoCourseware.mapper;

import java.util.List;
import com.spic.business.train.trainInfoCourseware.domain.TrainInfoCourseware;

/**
 * 培训信息_培训课件中间Mapper接口
 * 
 * @author spic
 * @date 2021-10-21
 */
public interface TrainInfoCoursewareMapper 
{
    /**
     * 查询培训信息_培训课件中间
     * 
     * @param id 培训信息_培训课件中间主键
     * @return 培训信息_培训课件中间
     */
    public TrainInfoCourseware selectTrainInfoCoursewareById(String id);

    /**
     * 查询培训信息_培训课件中间列表
     * 
     * @param trainInfoCourseware 培训信息_培训课件中间
     * @return 培训信息_培训课件中间集合
     */
    public List<TrainInfoCourseware> selectTrainInfoCoursewareList(TrainInfoCourseware trainInfoCourseware);

    /**
     * 新增培训信息_培训课件中间
     * 
     * @param trainInfoCourseware 培训信息_培训课件中间
     * @return 结果
     */
    public int insertTrainInfoCourseware(TrainInfoCourseware trainInfoCourseware);

    /**
     * 修改培训信息_培训课件中间
     * 
     * @param trainInfoCourseware 培训信息_培训课件中间
     * @return 结果
     */
    public int updateTrainInfoCourseware(TrainInfoCourseware trainInfoCourseware);

    /**
     * 删除培训信息_培训课件中间
     * 
     * @param id 需要删除的数据主
     * @return 结果
     */
    public int deleteTrainInfoCoursewareById(String id);



    public int deleteTrainInfoCoursewareByTrainInfoId(String id);
    /**
     * 批量删除培训信息_培训课件中间
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrainInfoCoursewareByIds(String[] ids);
    /**
     * 根据培训信息id获取
     */
    public List<TrainInfoCourseware> selectBytrainInfoId(String trainInfoId);
    /**批量新增*/
    void insertTrainInfoCoursewares(List<TrainInfoCourseware> trainInfoCoursewares);
}
